package com.duansky;

public class Link implements Cloneable {
	
	String id;
	String source;
	String target;
	int value;
	int state;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getSource() {
		return source;
	}
	public void setSource(String source) {
		this.source = source;
	}
	public String getTarget() {
		return target;
	}
	public void setTarget(String target) {
		this.target = target;
	}
	public int getValue() {
		return value;
	}
	public void setValue(int value) {
		this.value = value;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}

	
	
	Link(String id,String from_id,String to_id,int value){
		this.id=id;
		this.source=from_id;
		this.target=to_id;
		this.value=value;
	}
	
	Link(String id,String from_id,String to_id,int value,int state){
		this.id=id;
		this.source=from_id;
		this.target=to_id;
		this.value=value;
		this.state=state;
	}
	
	@Override
	public Object clone() throws CloneNotSupportedException{
		Link link=(Link) super.clone();
		return link;
	}
}
